|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfurny.ga.FurnEntry
public class FurnEntry
This is one gene segment for a furniture with a position and rotation in the room.
Field Summary | |
---|---|
private math.geom2d.polygon.Polygon2D |
bounds
|
private Furniture |
furniture
|
private static java.util.logging.Logger |
LOGGER
|
private RoomVector |
vector
|
Constructor Summary | |
---|---|
FurnEntry(RoomVector vector,
Furniture furniture)
Create a new furniture entry. |
Method Summary | |
---|---|
protected FurnEntry |
clone()
|
int |
compareTo(FurnEntry o)
|
com.jme3.scene.Node |
createTranslatedModel()
Creates a copy of the furnitures model and translates/rotates it. |
boolean |
equals(java.lang.Object obj)
|
math.geom2d.polygon.Polygon2D |
getBounds()
Getter for the outter bounds of the furniture. |
Furniture |
getFurniture()
Getter for the furniture. |
RoomVector |
getVector()
Getter for the room vector. |
int |
hashCode()
|
static void |
main(java.lang.String[] args)
Main method for testing. |
void |
setFurniture(Furniture furniture)
Setter for the furniture. |
void |
setVector(RoomVector vector)
Setter for the room vector. |
java.lang.String |
toString()
|
private void |
updateShape()
Updates the bounds shape. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final java.util.logging.Logger LOGGER
private RoomVector vector
private Furniture furniture
private math.geom2d.polygon.Polygon2D bounds
Constructor Detail |
---|
public FurnEntry(RoomVector vector, Furniture furniture)
vector
- The room vector that represents location and rotation.furniture
- The furniture.Method Detail |
---|
public com.jme3.scene.Node createTranslatedModel()
public math.geom2d.polygon.Polygon2D getBounds()
private void updateShape()
public RoomVector getVector()
public void setVector(RoomVector vector)
vector
- The room vector.public Furniture getFurniture()
public void setFurniture(Furniture furniture)
furniture
- The furniture.protected FurnEntry clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(FurnEntry o)
compareTo
in interface java.lang.Comparable<FurnEntry>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |